<%@page isELIgnored="false" import="java.net.*" %>
<%@taglib prefix="tiles" uri="struts-tiles" %>
<%@taglib prefix="html" uri="struts-html" %>
<%@taglib prefix="fn" uri="jstl-fn" %>
<%@taglib prefix="bean" uri="struts-bean" %>
<%@taglib prefix="c" uri="jstl" %>
<c:set var="ResAsset"></c:set><c:set var="AssetsLength" value="${fn:length(FlowData.assets)}"/><c:set var="AssetsLengthLast" value="${fn:length(FlowData.assets) - 1}"/><c:forEach items="${FlowData.assets}" var="asset" varStatus="assetStatus"><c:set var="ResAsset">${ResAsset} ${asset.nombre}<c:if test="${assetStatus.index lt AssetsLengthLast}">,</c:if></c:set></c:forEach>
<center>
<br/>
<table style="width: 800px;">
<tr>
	<td style="width: 100%; ">Assets: ${ResAsset}</td>
</tr>
<tr>
	<td style="width: 100%; ">&nbsp;<font color="red">${FlowData.error}</font></td>
</tr>
<tr>
	<td style="width: 100%;">
		<table style="width: 100%;">
			<thead>
				<tr style="background-color: #C0C0C0;">
					<th style="text-align: center;">Elegir</th>
					<th style="text-align: center;">Nombre del servicio</th>
					<th style="text-align: center;">Comentario</th>
				</tr>
			</thead>
<c:forEach items="${FlowData.services}" var="service">
				<tr onmouseover="this.style.backgroundColor = '#C0C0C0';" onmouseout="this.style.backgroundColor = 'white';">
					<td align="center"><input type="checkbox" name="selectService" value="${service.cveServicio}"/></td>
					<td>${service.nombre }</td>
					<td align="center"><input type="text" name="comentario-${service.cveServicio}" style="width: 100px; background-color: #C0C0C0; " /></td>
				</tr>
</c:forEach>
				<tr>
					<td colspan="3">&nbsp;</td>
				</tr>
				<tr>
					<td valign="top">Comentarios</td>
					<td colspan="2"><textarea style="width: 100%; height: 150px; background-color: #C0C0C0; " name="comentarios" ></textarea></td>
				</tr>
				<tr>
 					<td colspan="3" align="center"><input type="button" value="Generar" onclick="processExit( 'Enviar' );" /></td>
				</tr>
		</table>
	</td>
</tr>
</table>
</center>